From aacdf83ab2e1c70fc1d5c4b8f541ba3f33ce5f7b Mon Sep 17 00:00:00 2001 From: Jimi Xenidis Date: Tue, 28 Nov 2006 10:33:53 -0500 Subject: [PATCH] [POWERPC][XEN] cpu_relax() needs to call barrier() Signed-off-by: Jimi Xenidis Signed-off-by: Hollis Blanchard --HG-- extra : transplant_source : %A8%E6z%19%C3%25Zk%BC%0A%AA%5C%9E%176%F1%DD%D7ol --- xen/include/asm-powerpc/processor.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/xen/include/asm-powerpc/processor.h b/xen/include/asm-powerpc/processor.h index 8343ecee71..50d544b9ea 100644 --- a/xen/include/asm-powerpc/processor.h +++ b/xen/include/asm-powerpc/processor.h @@ -152,7 +152,8 @@ static inline ulong mfmsr(void) { static inline void nop(void) { __asm__ __volatile__ ("nop"); } -#define cpu_relax() nop() +/* will need to address thread priorities when we go SMT */ +#define cpu_relax() barrier() static inline unsigned int mfpir(void) { -- 2.30.2